import request from "@/utils/request";
//新增
export function fieldAdd(data) {
  return request({
    url: `/v1/purchase-config/field-auth/create`,
    method: "post",
    data,
  });
}
//编辑
export function fieldEdit(data) {
  return request({
    url: `/v1/purchase-config/field-auth/edit`,
    method: "post",
    data,
  });
}
//列表
export function fieldList(data) {
  return request({
    url: `/v1/purchase-config/field-auth/list`,
    method: "post",
    data,
  });
}
//删除
export function fieldDelete(data) {
  return request({
    url: `/v1/purchase-config/field-auth/delete`,
    method: "post",
    data,
  });
}
//明细
export function fieldDetail(params) {
  return request({
    url: `/v1/purchase-config/field-auth/detail`,
    method: "get",
    params,
  });
}
//批量添加
export function batchAddSupplier(data) {
  return request({
    url: `/v1/purchase-config/field-auth/batch-add-supplier`,
    method: "post",
    data,
  });
}